package com.btm.mcp.business.config;

import com.meilisearch.sdk.Client;
import com.meilisearch.sdk.Config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MeiliSearchConfig {

    @Value("${meilisearch.host}")
    private String meiliHost;

    @Value("${meilisearch.api-key}")
    private String meiliApiKey;

    @Bean
    public Client meiliSearchClient() {
        return new Client(new Config(meiliHost, meiliApiKey));
    }
} 